from django.urls import path
from crouse import views
from rest_framework.routers import DefaultRouter
router = DefaultRouter()
router.register(r'hot',views.HotWordView,basename='crousedeskmodel')

urlpatterns = [
    path('allcate/',views.CategroyView.as_view()),
    path('cate/',views.NowCate.as_view()),
    path('dirc/',views.Direction.as_view()),
    path('child/',views.ChidCate.as_view()),
    path('list/',views.CrouseListView.as_view()),
    path('detail/',views.Detail.as_view()),
    path('hotword/',views.HotWordGet.as_view()),
]
urlpatterns += router.urls